<template>
  <div id="member">
    <!-- 分享按扭 -->
    <div class="btn">
      <van-image
        width="25"
        height="25"
        :src="require('../../assets/images/member/pic1.png')"
        @click="showShare = true"
      />
      <van-share-sheet
        v-model:show="showShare"
        title="立即分享给好友"
        :options="options"
        @select="onSelect"
      />
    </div>
    <!-- vip图 -->
    <div class="vip">
      <img
        src="../../assets/images/member/pic2.png"
        alt=""
        style="width: 100%; height: 55px"
      />
    </div>
    <!-- 背景图 -->
    <div class="beijing">
      <div class="beijing-pic">
        <img
          src="../../assets/images/member/pic3.png"
          alt=""
          style="width: 100%"
        />
      </div>
      <div class="bei-txt">
        <span>全家共享权益</span>
        <span>时刻守护健康</span>
      </div>
    </div>
    <!-- 黄金会员 -->
    <div class="glod">
      <div class="glod-txt">
        <span class="glodviptxt">黄金VIP会员</span>
        <span class="glodviptxt1">有效期1年</span>
      </div>

      <div class="glod-medal">
        <img
          src="../../assets/images/member/pic5-6.png"
          alt=""
          style="width: 97px; height: 130px"
        />
      </div>
      <div class="glod-recommend">
        <p class="glod-recommend-txt">推荐</p>
      </div>

      <div class="glod-list">
        <div>
          <div class="glod-pic img1"></div>
          <span>精选医生</span>
        </div>
        <div>
          <div class="glod-pic img2"></div>
          <span>系统管理</span>
        </div>
        <div>
          <div class="glod-pic img3"></div>
          <span>商城折扣</span>
        </div>
        <div>
          <div class="glod-pic img4"></div>
          <span>VIP管家</span>
        </div>
      </div>

      <div class="liaojie">
        <div class="liaojie-l">
          了解详情
          <span class="jiantou"></span>
        </div>
        <div class="liaojie-r">
          <span>68元 立即开通</span>
        </div>
      </div>
    </div>
    <!-- 钻石会员 -->
    <div class="jewel">
      <div class="glod-txt">
        <span class="glodviptxt">钻石VIP会员</span>
        <span class="glodviptxt1">有效期1年</span>
      </div>

      <div class="glod-recommend">
        <p class="glod-recommend-txt">推荐</p>
      </div>

      <div class="glod-list">
        <div>
          <div class="glod-pic img1"></div>
          <span>精选医生</span>
        </div>
        <div>
          <div class="glod-pic img2"></div>
          <span>系统管理</span>
        </div>
        <div>
          <div class="glod-pic img3"></div>
          <span>商城折扣</span>
        </div>
        <div>
          <div class="glod-pic img4"></div>
          <span>VIP管家</span>
        </div>
      </div>

      <div class="liaojie">
        <div class="liaojie-l">
          了解详情
          <span class="jiantou"></span>
        </div>
        <div class="liaojie-r">
          <span>599元 立即开通</span>
        </div>
      </div>
    </div>
    <!-- 兑换按钮 -->
    <div class="duihuan">兑换会员</div>

    <p class="hehuo">城市合伙人会员专区</p>
    <!-- 黄金plus会员 -->
    <div class="glodvip">
      <div class="deadline">有效期1年</div>
      <p class="glodvip-title">黄金PLUS会员</p>
      <p class="glodvip-title1">城市合伙人</p>
      <p class="glodvip-title2"><span></span>私人订制 全家共享</p>
      <p class="glodvip-title2"><span></span>11大权益</p>
      <div class="glodvip-btn">
        <span class="glodvip-btn1">了解详情</span>
        <span class="glodvip-btn2">立即兑换</span>
      </div>
    </div>
    <!-- 钻石plus会员 -->
    <div class="jewelvip">
      <div class="deadline">有效期1年</div>
      <p class="glodvip-title">钻石PLUS会员</p>
      <p class="glodvip-title1">城市合伙人</p>
      <p class="glodvip-title2"><span></span>独家提供，尊贵专享</p>
      <p class="glodvip-title2"><span></span>17大权益</p>
      <div class="glodvip-btn">
        <span class="glodvip-btn1">了解详情</span>
        <span class="glodvip-btn2">立即兑换</span>
      </div>
    </div>

    <p class="hehuo">智云企业会员</p>
    <!-- 图 -->
    <div>
      <img
        src="../../assets/images/member/pic9.png"
        alt=""
        style="width: 100%; height: 143px"
      />
    </div>

    <!-- 用户评价 -->
    <p class="user">用户评价</p>
    <div>
      <div class="user-evaluate" v-for="item in userList" :key="item.usename">
        <img :src="item.url" alt="" />
        <div class="users">
          <p class="username">{{ item.usename }}</p>
          <p class="usertxt">
            {{ item.txt }}
          </p>
        </div>
      </div>
    </div>
    <!-- 底部 -->
    <div class="footer">
      <div>
        <img
          src="../../assets/images/member/pic11.png"
          alt=""
          class="footer-pic1"
        />
        <span>智云健康</span>
        <img
          src="../../assets/images/member/pic12.png"
          alt=""
          class="footer-pic2"
        />
        <span>VIP会员</span>
      </div>
      <p class="footer-txt">让数字健康走进千家万户</p>
    </div>
  </div>
</template>
<script>
import { ref, reactive } from "vue";
import { Toast } from "vant";

export default {
  setup() {
    const userList = reactive([
      {
        url: require("../../assets/images/member/pic10.png"),
        usename: "王*艺",
        txt: "平时经常熬夜加班，抵抗力差了，小毛病直接不用出门不用请假，线上就能解决。买药也优惠，全家能一 起享受，性价比很高",
      },
      {
        url: require("../../assets/images/member/pic10.png"),
        usename: "张*",
        txt: "自己一个人在外工作，没办法陪伴在父母身边，偶尔电 话里听到咳嗽胃疼又不愿意去医院感到自责，现在拿 个手机随时找医生，放心多了",
      },
      {
        url: require("../../assets/images/member/pic10.png"),
        usename: "赵*斌",
        txt: "全家老小一起用，解决了我和家人对健康的担忧，健 康顾问和医生回复很及时，另外还送体检和保险，足 够满足家庭保障，很实惠",
      },
    ]);

    const showShare = ref(false);
    const options = [
      { name: "微信", icon: "wechat" },
      { name: "微博", icon: "weibo" },
      { name: "复制链接", icon: "link" },
      { name: "分享海报", icon: "poster" },
      { name: "二维码", icon: "qrcode" },
    ];

    const onSelect = (option) => {
      Toast(option.name);
      showShare.value = false;
    };
    return {
      userList,
      options,
      onSelect,
      showShare,
    };
  },
};
</script>
<style lang="less" scoped>
#nav {
  padding: 0;
}
#member {
  width: 100%;
  // height: 4295px;
  background-color: #31242b;
  padding: 7px 14px;
  padding-bottom: 60px;

  // 分享按钮
  .btn {
    text-align: right;
    margin-top: 5px;
    color: #fffaad;
  }
  // vip图片
  .vip {
    text-align: center;
    color: #fde2c8;
    font-size: 15px;
    margin-top: 20px;
  }
  // 背景图
  .beijing {
    margin: auto;
    width: 100%;
    height: 63px;
    line-height: 20px;
    font-size: 10px;
    position: relative;

    .beijing-pic {
      position: absolute;
      top: 0;
      left: 0;
    }
    .bei-txt {
      width: 100%;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -60%);
      font-size: 18px;
      color: #634227;
      // line-height: 44px;
      text-align: center;

      :last-child {
        margin-left: 10px;
      }
    }
  }
  // 黄金vip
  .glod {
    width: 100%;
    height: 215px;
    background: url("../../assets/images/member/pic5.png") center, center;
    background-size: 353px 214px;
    margin: 20px auto;
    position: relative;

    .glod-txt {
      text-align: left;
      margin-left: 18px;
      padding-top: 21px;

      .glodviptxt {
        font-size: 22px;
        font-weight: bold;
        color: #333333;
        line-height: 20px;
      }

      .glodviptxt1 {
        font-size: 14px;
        font-family: PingFang SC;
        font-weight: bold;
        color: #333333;
        line-height: 20px;
      }
    }

    .glod-medal {
      position: absolute;
      width: 97px;
      height: 130px;
      // background: url("../../assets/images/member/pic5-6.png"),center,center;
      // background-size:97px 130px;
      top: 15px;
      right: 43px;
      z-index: 1;
    }

    .glod-recommend {
      position: absolute;
      top: 5px;
      right: 2px;
      width: 73px;
      height: 64px;
      background: url("../../assets/images/member/pic5-5.png"), center, center;
      background-size: 73px 64px;
      z-index: 99;

      .glod-recommend-txt {
        position: absolute;
        top: 13px;
        right: 18px;
        font-weight: bold;
        color: #ffffff;
        transform: rotate(45deg);
        font-size: 13px;
      }
    }
    .glod-list {
      position: absolute;
      width: 100%;
      display: flex;
      justify-content: space-evenly;
      font-size: 12px;
      top: 50%;
      transform: translateY(-50%);
      // margin-top: 25px;
      z-index: 999;
      color: #4c2d1c;

      .glod-pic {
        width: 43px;
        height: 43px;
        margin-bottom: 10px;
      }
      .img1 {
        background: url("../../assets/images/member/pic5-1.png");
        background-size: 43px 43px;
      }
      .img2 {
        background: url("../../assets/images/member/pic5-2.png");
        background-size: 43px 43px;
      }
      .img3 {
        background: url("../../assets/images/member/pic5-3.png");
        background-size: 43px 43px;
      }
      .img4 {
        background: url("../../assets/images/member/pic5-4.png");
        background-size: 43px 43px;
      }
    }

    .liaojie {
      position: absolute;
      bottom: 20px;
      left: 20px;
      margin-top: 13px;
      display: flex;
      font-size: 16px;
      text-align: center;

      .liaojie-l {
        width: 115px;
        height: 41px;
        border: 2px solid #000000;
        border-radius: 20px;
        line-height: 40px;
      }

      .liaojie-r {
        width: 180px;
        height: 42px;
        border: 2px solid #fff4ca;
        background: linear-gradient(90deg, #ffdaa3 0%, #e5b877 100%);
        box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.3);
        border-radius: 21px;
        line-height: 40px;
        color: #5c2803;
        margin-left: 15px;
        z-index: 99;
      }
    }
  }
  // 钻石vip
  .jewel {
    width: 100%;
    height: 215px;
    background: url("../../assets/images/member/pic6.png") center, center;
    background-size: 353px 214px;
    margin: 20px auto;
    position: relative;

    .glod-txt {
      text-align: left;
      margin-left: 18px;
      padding-top: 21px;

      .glodviptxt {
        font-size: 22px;
        font-weight: bold;
        color: #333333;
        line-height: 20px;
      }

      .glodviptxt1 {
        font-size: 14px;
        font-family: PingFang SC;
        font-weight: bold;
        color: #333333;
        line-height: 20px;
      }
    }

    .glod-medal {
      position: absolute;
      width: 97px;
      height: 130px;
      // background: url("../../assets/images/member/pic5-6.png"),center,center;
      // background-size:97px 130px;
      top: 15px;
      right: 43px;
      z-index: 1;
    }

    .glod-recommend {
      position: absolute;
      top: 5px;
      right: 2px;
      width: 73px;
      height: 64px;
      background: url("../../assets/images/member/pic6-5.png"), center, center;
      background-size: 73px 64px;
      z-index: 99;

      .glod-recommend-txt {
        position: absolute;
        top: 13px;
        right: 18px;
        font-weight: bold;
        color: #ffffff;
        transform: rotate(45deg);
        font-size: 13px;
      }
    }
    .glod-list {
      position: absolute;
      width: 100%;
      display: flex;
      justify-content: space-evenly;
      font-size: 12px;
      margin-top: 25px;
      // z-index: 999;
      color: #4c2d1c;
      top: 40%;
      transform: translateY(-50%);

      .glod-pic {
        width: 43px;
        height: 43px;
        margin-bottom: 10px;
      }
      .img1 {
        background: url("../../assets/images/member/pic6-1.png");
        background-size: 43px 43px;
      }
      .img2 {
        background: url("../../assets/images/member/pic6-2.png");
        background-size: 43px 43px;
      }
      .img3 {
        background: url("../../assets/images/member/pic6-3.png");
        background-size: 43px 43px;
      }
      .img4 {
        background: url("../../assets/images/member/pic6-4.png");
        background-size: 43px 43px;
      }
    }

    .liaojie {
      position: absolute;
      bottom: 20px;
      left: 20px;
      margin-top: 13px;
      display: flex;
      font-size: 16px;
      text-align: center;

      .liaojie-l {
        width: 115px;
        height: 41px;
        border: 2px solid #000000;
        border-radius: 20px;
        line-height: 40px;
      }

      .liaojie-r {
        width: 180px;
        height: 42px;
        border: 2px solid #fff4ca;
        background: linear-gradient(90deg, #ffdaa3 0%, #e5b877 100%);
        box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.3);
        border-radius: 21px;
        line-height: 40px;
        color: #5c2803;
        margin-left: 15px;
      }
    }
  }
  // 兑换按钮
  .duihuan {
    width: 100%;
    height: 40px;
    border: 2px solid #c4a986;
    box-shadow: 0px 0px 9px 1px rgba(3, 2, 6, 0.5);
    border-radius: 40px;
    color: #fde19b;
    font-size: 18px;
    line-height: 40px;
    text-align: center;
  }
  // 一个标题
  .hehuo {
    text-align: center;
    font-size: 18px;
    color: #fde19b;
    line-height: 40px;
    text-shadow: 0px 0px 9px #030206;
    margin: 30px auto;
  }
  // 黄金plus
  .glodvip {
    width: 100%;
    height: 251px;
    background: url("../../assets/images/member/pic7.png");
    background-size: 350px 251px;
    padding-top: 20px;
    padding-left: 15px;
    position: relative;

    .deadline {
      width: 70px;
      height: 25px;
      background: url("../../assets/images/member/pic8-1.png");
      background-size: 70px 25px;
      position: absolute;
      top: 0;
      right: 10px;
      font-size: 12px;
      line-height: 25px;
      color: #724713;
      text-align: center;
    }

    .glodvip-title {
      font-size: 23px;
      color: #4a1701;
      line-height: 40px;
      text-align: left;
    }

    .glodvip-title1 {
      font-size: 15px;
      color: #2a0b02;
      line-height: 40px;
      text-align: left;
    }

    .glodvip-title2 {
      font-size: 15px;
      text-align: left;
      color: #333333;
      line-height: 30px;

      span {
        display: inline-block;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #f2d3aa;
        margin-right: 5px;
      }
    }

    .glodvip-btn {
      width: 100%;
      font-size: 18px;
      color: #795124;
      margin-top: 28px;
      text-align: center;

      .glodvip-btn1 {
        display: inline-block;
        width: 150px;
        height: 40px;
        line-height: 40px;
        border: 2px solid #e6e6e6;
        border-radius: 20px;
      }

      .glodvip-btn2 {
        display: inline-block;
        width: 150px;
        height: 40px;
        line-height: 40px;
        background: #fad399;
        border: 2px solid #fcd8a1;
        border-radius: 20px;
        margin-left: 15px;
      }
    }
  }
  // 钻石plus
  .jewelvip {
    width: 100%;
    height: 251px;
    background: url("../../assets/images/member/pic8.png");
    background-size: 350px 251px;
    padding-top: 20px;
    padding-left: 15px;
    position: relative;
    margin-top: 10px;

    .deadline {
      width: 70px;
      height: 25px;
      background: url("../../assets/images/member/pic8-1.png");
      background-size: 70px 25px;
      position: absolute;
      top: 0;
      right: 10px;
      font-size: 12px;
      line-height: 25px;
      color: #724713;
      text-align: center;
    }

    .glodvip-title {
      font-size: 23px;
      color: #4a1701;
      line-height: 40px;
      text-align: left;
    }

    .glodvip-title1 {
      font-size: 15px;
      color: #2a0b02;
      line-height: 40px;
      text-align: left;
    }

    .glodvip-title2 {
      font-size: 15px;
      text-align: left;
      color: #333333;
      line-height: 30px;

      span {
        display: inline-block;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #f2d3aa;
        margin-right: 5px;
      }
    }

    .glodvip-btn {
      width: 100%;
      font-size: 18px;
      color: #795124;
      margin-top: 28px;
      text-align: center;

      .glodvip-btn1 {
        display: inline-block;
        width: 150px;
        height: 40px;
        line-height: 40px;
        border: 2px solid #e6e6e6;
        border-radius: 20px;
      }

      .glodvip-btn2 {
        display: inline-block;
        width: 150px;
        height: 40px;
        line-height: 40px;
        background: #fad399;
        border: 2px solid #fcd8a1;
        border-radius: 20px;
        margin-left: 15px;
      }
    }
  }
  // 评价标题
  .user {
    margin-top: 30px;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    line-height: 40px;
    text-shadow: 0px 0px 7px #030206;
  }
  // 用户评价
  .user-evaluate {
    width: 100%;
    height: 90px;
    margin-bottom: 10px;

    img {
      width: 48px;
      height: 48px;
      float: left;
    }

    .users {
      width: 270px;
      float: left;
      color: #ffffff;
      text-align: left;
      margin-left: 10px;

      .username {
        font-size: 16px;
        line-height: 18px;
        text-shadow: 0px 0px 7px #030206;
        margin-bottom: 20px;
      }

      .usertxt {
        font-size: 12px;
        line-height: 18px;
        text-shadow: 0px 0px 7px #030206;
      }
    }
  }
  // 底部广告
  .footer {
    width: 100%;
    margin-top: 50px;
    height: 40px;
    color: #ffffff;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    .footer-pic1 {
      width: 27px;
      height: 19px;
      vertical-align: baseline;
    }
    .footer-pic2 {
      width: 50px;
      height: 10px;
      vertical-align: baseline;
      margin-left: 5px;
    }
    span {
      font-size: 15px;
      font-weight: bold;
      line-height: 17px;
      margin-left: 5px;
    }

    .footer-txt {
      width: 100%;
      font-size: 12px;
      opacity: 0.5;
      letter-spacing: 10px;
      margin-top: 20px;
      text-align: center;
    }
  }
}
</style>
